/*package cn.stylefeng.guns.modular.rest.task.scheduled;

import cn.stylefeng.guns.modular.hx.storage.entity.HxStorageMoveRecord;
import cn.stylefeng.guns.modular.hx.storage.service.HxStorageMoveRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Component
public class scheduledComponent {

    @Autowired
    private HxStorageMoveRecordService recordService;

    @Scheduled(cron = "0 0 3 * * ?")
    public void removeRecordTask(){
        LocalDateTime time = LocalDateTime.now().minusMonths(1);
        String format = time.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
        recordService.deleteByTime(format);
    }
}*/
